<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function Person(name) {
        this.name = name;
      }
        Person.prototype.age = function () {
        console.log('haha');
      };
      Object.prototype.hobby = function(){
        console.log('xiai')
      }
      var p = new Person('lisi');

    //   console.log(p);
    //   console.log(p.age);
    //   console.log(p.hobby)
    console.log(String.prototype.constructor === String)
    console.log(Number.prototype.constructor === Number)
    console.log(Boolean.prototype.constructor === Boolean)
    console.log(Object.prototype.__proto__) //null
    </script>
  </body>
</html>
